package Getopt::Moose::Role;

use if $ENV{DEBUG} => 'Smart::Comments';

use Moose::Role;


has 'getopt' => (
    is => 'ro',
    isa => 'Getopt::Moose',
    default => sub { 
        ### Getopt::Moose::Role->getopt->default : @_
        Getopt::Moose->new 
    },
#    handles => [ 'argv', 'argv_extra' ],
);


package Moose::Meta::Attribute::Custom::Trait::Getopt;

use constant 'register_implementation' => 'Getopt::Moose::Meta::Attribute';

1;
